<!DOCTYPE html>
<body>
  <p>First</p>
  <p>
    <style scoped>
      p { color: red }
    </style>
    Second
  </p>
  <p>Third</p>
  <style>
    p { color: blue !important }
  </style>
</body>
